<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // var num = [10,20,30,40,50]
        // var res = num.push(100)
        // console.log(num)
        // console.log(res)

        // var num = [10,20,30,40,50]
        // var res = num.unshift(100)
        // console.log(num)

        // var num = [10,20,30,40,50]
        // var res = num.splice(3,0,100)
        // console.log(num);

        // var num = [10,20,30,40,50]
        // num.pop()
        // console.log(num)

        // var num = [10,20,30,40,50]
        // num.shift()
        // console.log(num)

        var num = [10,20,30,40,50]
        num.splice(1,2)
        console.log(num)
    </script>
</body>
</html>